<?php


namespace app\common\model;


use think\Model;

class ExpertPlanModel extends Model {

    public function matchSchedule() {
        return $this->hasOne(MatchesScheduleModel::class, 'match_id', 'match_id');
    }


    /**
     * 专家信息
     * @return \think\model\relation\HasOne
     */
    public function expert() {
        return $this->hasOne(ExpertModel::class, 'id', 'expert_id');
    }

    /**
     * 玩法
     * @return \think\model\relation\HasOne
     */
    public function expertPlay() {
        return $this->hasMany(ExpertPlayModel::class, 'expert_plan_id', 'id');
    }

}